<?php

include ('top.ajax.php');
$product=new Product($_POST['produit_id']);
$product->load();
if ($_POST['etat']==1) {
	$product['etat']=2;
	$product->save();
}
if ($_POST['etat']!=1) {
	$product['etat']=1;
	$product->save();
}

	
	

	
	 

?>